var MyTestLayer = cc.Layer.extend({
    init:function () {

        //////////////////////////////
        // 1. super init first
        this._super();

        /////////////////////////////
        // 2. add a menu item with "X" image, which is clicked to quit the program
        //    you may modify it.
        // ask director the window size
        var size = cc.Director.getInstance().getVisibleSize();

        cc.BuilderReader.setResourcePath("res/ccb/");

        var node = cc.BuilderReader.load("res/ccb/MainScene.ccbi", this);

        if(node != null) {
            this.addChild(node);
        }

        var btt=node.getChildByTag(2);
        console.log(btt.getString());

    }
});

var MyTestScene = cc.Scene.extend({
    onEnter:function () {
        this._super();
        var layer = new MyTestLayer();
        this.addChild(layer);
        layer.init();
    }
});
